package baiqitun.stupro.project.repository;

import baiqitun.stupro.common.service.MongoService;
import baiqitun.stupro.project.entity.SysProjectLike;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * 项目点赞业务类
 * @author kedaji
 */
public interface SysProjectLikeRepository extends MongoRepository<SysProjectLike, String> {
    /**
     * 用户是否给指定项目点过赞
     * @param userId 用户id
     * @param projectId 项目di
     * @return 有或者没有
     */
    boolean existsSysProjectLikeByUserIdAndAndProjectId(String userId, String projectId);
}
